﻿// -----------------------------------------------------------------------
// <copyright file="FilterFactory.cs">
// Copyright (c) 2013 Andrey Veselov. All rights reserved.
// Contact email: andrey@moveax.com
// </copyright>
// -----------------------------------------------------------------------

namespace PortableImagingLibrary.Png.Filters
{
    using System;

    internal static class FilterFactory
    {
        public static IFilter CreateFilter(FilterType filterType)
        {
            switch (filterType) {
                case FilterType.AdaptiveFiltering:
                    return new AdaptiveFilter();

                default:
                    throw new ArgumentOutOfRangeException("filterType");
            }
        }
    }
}
